package com.example.demo.Calss16_graph;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: java_base
 * @description: 图结构内，抽象结构：节点
 * @author: zhouhongtao
 * @happyCreateTime: 2022/03/02 09:50
 */
public class Node {

    public int value;

    public int in;

    public int out;

    public List<Node> nexts;

    public List<Edge> edges;

    public Node(int v) {
        value = v;
        in = 0;
        out = 0;
        nexts = new ArrayList<>();
        edges = new ArrayList<>();
    }
}
